package com.stone.sys.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * SYS_ORGAN entity. @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "SYS_USER_ROLE")
public class TUserRole implements java.io.Serializable {
	
	// Fields
	private Long id;
	private Long userId;
	private Long roleId;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_USER_ROLE")
	@SequenceGenerator(name = "SEQ_USER_ROLE", allocationSize = 1, sequenceName = "SEQ_USER_ROLE")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "USER_ID")
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "ROLE_ID")
	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

}